let { $, table, layer, form, upload } = layui;
export default class Search {
    constructor() {
        this.handle();
    }
    handle() {
        console.log(form.val("searchForm"));
        let { type, value } = form.val("searchForm");
        if (value) {
            table.reload("filmsTable", {
                //直接将表单的type和value传到服务器端
                where: {
                    type, value,
                    current: 1,
                }
            });
        } else {
            table.reload("filmsTable", {
                //直接将表单的type和value传到服务器端
                where: {
                    type, value
                }
            });
        }
    };
}